package com.sy.bean.allocate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel("调拨列表")
public class Allocate {
    @ApiModelProperty(value = "调拨单id")
    int id;
    @ApiModelProperty("单据日期")
    @NotBlank(message = "单据日期不能为空")
    String billDate;
    @ApiModelProperty("单据编号")
    String code;
    @ApiModelProperty("制单人")
    @NotBlank(message = "制单人不能为空")
    String user;
    @ApiModelProperty("审核人")
    String audit;
    @ApiModelProperty("审核状态")
    int auditStatus;
    @ApiModelProperty("备注")
    String note;
    @ApiModelProperty("企业id")
    @NotNull(message = "企业id不能为空")
    @Min(1)
    int eid;
    @Valid
    @ApiModelProperty("调拨明细")
    List<AllocateDetail> allocateDetailList;
}
